/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

import java.util.Arrays;

/**
 * <p>Project: jse2303 - ArrSort
 * <p>Powered by webrx On 2023-07-14 16:23:40
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ArrSort {
    public static void main(String[] args) {
        Integer[] ns = {1, 10, 3, 25, 4, 9, 0, 20};
        System.out.println(Arrays.toString(ns));
        //Arrays.sort(ns, (a, b) -> b - a);

        //Desc desc = new Desc();
        //Arrays.sort(ns, desc);

        Arrays.sort(ns, (a, b) -> b - a);

        System.out.println(Arrays.toString(ns));

    }
}
